<?php

namespace CMBUBank\UBank\Request\Account;

use CMBUBank\UBank\Request\UBankBaseRequest;
use CMBUBank\UBank\Response\Account\AccountTradeListQueryResponse;

class AccountTradeListQueryRequest extends UBankBaseRequest
{
    protected $code = 'DCTRSINF';

    protected $response = AccountTradeListQueryResponse::class;

    protected $logTip = '账户交易信息查询';

    private $backNo;

    private $account;

    private $data;

    private $page;


    public function generate(): array
    {
        return [
            'bbknbr' => $this->backNo,
            'accnbr' => $this->account,
            'trsdat' => date('Ymd',strtotime($this->data)),
            'trsseq' => $this->page,
        ];
    }

    public function setBackNo(string $backNo): void
    {
        $this->backNo = $backNo;
    }

    public function setAccount(string $account): void
    {
        $this->account = $account;
    }

    public function setData(string $data): void
    {
        $this->data = $data;
    }

    public function setPage(string $page): void
    {
        $this->page = $page;
    }
}